
<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8">

<title>登录</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta name="description" content="">

<meta name="author" content="">



<!-- Le styles -->

<link href="../bootstrap/css/bootstrap.css" rel="stylesheet">

<link href="http://suibiji.com/static/css/bootstraptest.css"
	rel="stylesheet">

<!--[if IE 6]>

    <link href="http://suibiji.com/static/css/ie6.min.css" rel="stylesheet">

    <![endif]-->

</head>



<body>

	<div class="container" id="login">

		<div class="span6">

			<form class="well form-horizontal" id="login_form" name="login"
				action="/signin" method="post">

				<fieldset>

					<legend>登录</legend>

					<div class="control-group">

						<input type="text" class="input-xlarge" name="username"
							id="username_input" value="" placeholder=邮箱 />

					</div>

					<div class="control-group" id="login_error">

						<input type="password" id="password_input" name="password"
							class="input-xlarge" placeholder=密码 />

					</div>

					<div class="form-action form-inline">

						<button type="submit" class="btn btn-large btn-success"
							id="submit_btn">登录</button>

						<label class="checkbox"> <input type="checkbox"
							id="keep_login_btn" checked="checked" /> 保持登录？ </label>

					</div>

					<div class="control-group" id="signup_link">

						<a href="#" onclick="javascript:forgetPassword();">忘记密码</a> | <a
							href="/signup">注册账号</a>

					</div>

				</fieldset>

			</form>

		</div>

	</div>

	<script src="http://suibiji.com/static/js/jquery-1.7.min.js"></script>

	<script src="http://suibiji.com/static/js/jquery.cookie.js"></script>

	<script src="http://suibiji.com/static/js/html5placeholder.jquery.js"></script>

	<script>
		$(function() {

			var msg = "";

			if (msg != "") {

				$('#login_error').addClass('error').find('.warn').show();

			} else {

				$('#login_error').removeClass('error').find('.warn').hide();

			}

		})

		function forgetPassword() {

			var username = $('#username_input').val();

			var url = "/sign/requestRestPassword?username=" + username;

			window.location.href = url;

		}

		var _gaq = _gaq || [];
		_gaq.push([ '_setAccount', 'UA-28008839-1' ]);
		_gaq.push([ '_setDomainName', 'suibiji.com' ]);
		_gaq.push([ '_setAllowLinker', true ]);
		_gaq.push([ '_trackPageview' ]);
		(function() {
			var ga = document.createElement('script');
			ga.type = 'text/javascript';
			ga.async = true;
			ga.src = ('https:' == document.location.protocol ? 'https://ssl'
					: 'http://www')
					+ '.google-analytics.com/ga.js';
			var s = document.getElementsByTagName('script')[0];
			s.parentNode.insertBefore(ga, s);
		})();
	</script>

	<script src="http://suibiji.com/static/js/login.js"></script>

</body>



</html>